﻿#include "FITKAbaConnectorBehaviorElasticity.h"


Interface::FITKAbaConnectorBehaviorEnum::ConnectorBehaviorType Interface::FITKAbaConnectorBehaviorElasticity::getBehaviorType() const
{
    return FITKAbaConnectorBehaviorEnum::ConnectorBehaviorType::Elasticity;
}

std::array<bool, 6> Interface::FITKAbaConnectorBehaviorElasticity::getForceMomentStates() const
{
    return m_forceMoment;
}

void Interface::FITKAbaConnectorBehaviorElasticity::setForceMomentStates(const std::array<bool, 6> &states)
{
    m_forceMoment = states;
}

namespace Interface {

FITKAbaConnectorBehaviorEnum::Definition FITKAbaConnectorBehaviorElasticity::getDefinition() const
{
    return m_definition;
}

void FITKAbaConnectorBehaviorElasticity::setDefinition(FITKAbaConnectorBehaviorEnum::Definition newDefinition)
{
    m_definition = newDefinition;
}

FITKAbaConnectorBehaviorEnum::Coupling FITKAbaConnectorBehaviorElasticity::getCoupling() const
{
    return m_coupling;
}

void FITKAbaConnectorBehaviorElasticity::setCoupling(FITKAbaConnectorBehaviorEnum::Coupling newCoupling)
{
    m_coupling = newCoupling;
}

int FITKAbaConnectorBehaviorElasticity::getDataRowCount() const
{
    return m_datas.count();
}

void FITKAbaConnectorBehaviorElasticity::setDataRowCount(int num)
{
    if(num >= 1)
        m_datas.resize(num);
}

void FITKAbaConnectorBehaviorElasticity::insertDataRow(int index)
{
    if (index >= 0 && index < m_datas.count())
        m_datas.insert(index, ConnectorBHElasticityData());
}

void FITKAbaConnectorBehaviorElasticity::removeDataRow(int index)
{
    if (m_datas.count() == 1)
        return;
    if (index >= 0 && index < m_datas.count())
        m_datas.removeAt(index);
}

ConnectorBHElasticityData &FITKAbaConnectorBehaviorElasticity::getRowData(int index)
{
    return m_datas[index];
}

const ConnectorBHElasticityData &FITKAbaConnectorBehaviorElasticity::getRowData(int index) const
{
    return m_datas[index];
}

std::array<bool, 6> FITKAbaConnectorBehaviorElasticity::getComponentsStates() const
{
    return m_components;
}

void FITKAbaConnectorBehaviorElasticity::setComponentsStates(const std::array<bool, 6> &states)
{
    m_components = states;
}

std::array<bool, 6> FITKAbaConnectorBehaviorElasticity::getIndepenentComponents() const
{
    return m_independentCompoments;
}

void FITKAbaConnectorBehaviorElasticity::setIndependentComponents(const std::array<bool, 6> &states)
{
    m_independentCompoments = states;
}

double ConnectorBHElasticityData::getD11() const
{
    return D11;
}

void ConnectorBHElasticityData::setD11(double newD11)
{
    D11 = newD11;
}

double ConnectorBHElasticityData::getD12() const
{
    return D12;
}

void ConnectorBHElasticityData::setD12(double newD12)
{
    D12 = newD12;
}

double ConnectorBHElasticityData::getD22() const
{
    return D22;
}

void ConnectorBHElasticityData::setD22(double newD22)
{
    D22 = newD22;
}

double ConnectorBHElasticityData::getD13() const
{
    return D13;
}

void ConnectorBHElasticityData::setD13(double newD13)
{
    D13 = newD13;
}

double ConnectorBHElasticityData::getD23() const
{
    return D23;
}

void ConnectorBHElasticityData::setD23(double newD23)
{
    D23 = newD23;
}

double ConnectorBHElasticityData::getD33() const
{
    return D33;
}

void ConnectorBHElasticityData::setD33(double newD33)
{
    D33 = newD33;
}

double ConnectorBHElasticityData::getD14() const
{
    return D14;
}

void ConnectorBHElasticityData::setD14(double newD14)
{
    D14 = newD14;
}

double ConnectorBHElasticityData::getD24() const
{
    return D24;
}

void ConnectorBHElasticityData::setD24(double newD24)
{
    D24 = newD24;
}

double ConnectorBHElasticityData::getD34() const
{
    return D34;
}

void ConnectorBHElasticityData::setD34(double newD34)
{
    D34 = newD34;
}

double ConnectorBHElasticityData::getD44() const
{
    return D44;
}

void ConnectorBHElasticityData::setD44(double newD44)
{
    D44 = newD44;
}

double ConnectorBHElasticityData::getD15() const
{
    return D15;
}

void ConnectorBHElasticityData::setD15(double newD15)
{
    D15 = newD15;
}

double ConnectorBHElasticityData::getD25() const
{
    return D25;
}

void ConnectorBHElasticityData::setD25(double newD25)
{
    D25 = newD25;
}

double ConnectorBHElasticityData::getD35() const
{
    return D35;
}

void ConnectorBHElasticityData::setD35(double newD35)
{
    D35 = newD35;
}

double ConnectorBHElasticityData::getD45() const
{
    return D45;
}

void ConnectorBHElasticityData::setD45(double newD45)
{
    D45 = newD45;
}

double ConnectorBHElasticityData::getD55() const
{
    return D55;
}

void ConnectorBHElasticityData::setD55(double newD55)
{
    D55 = newD55;
}

double ConnectorBHElasticityData::getD16() const
{
    return D16;
}

void ConnectorBHElasticityData::setD16(double newD16)
{
    D16 = newD16;
}

double ConnectorBHElasticityData::getD26() const
{
    return D26;
}

void ConnectorBHElasticityData::setD26(double newD26)
{
    D26 = newD26;
}

double ConnectorBHElasticityData::getD36() const
{
    return D36;
}

void ConnectorBHElasticityData::setD36(double newD36)
{
    D36 = newD36;
}

double ConnectorBHElasticityData::getD46() const
{
    return D46;
}

void ConnectorBHElasticityData::setD46(double newD46)
{
    D46 = newD46;
}

double ConnectorBHElasticityData::getD56() const
{
    return D56;
}

void ConnectorBHElasticityData::setD56(double newD56)
{
    D56 = newD56;
}

double ConnectorBHElasticityData::getD66() const
{
    return D66;
}

void ConnectorBHElasticityData::setD66(double newD66)
{
    D66 = newD66;
}

double ConnectorBHElasticityData::getForM() const
{
    return ForM;
}

void ConnectorBHElasticityData::setForM(double newForM)
{
    ForM = newForM;
}

double ConnectorBHElasticityData::getUorUR() const
{
    return UorUR;
}

void ConnectorBHElasticityData::setUorUR(double newUorUR)
{
    UorUR = newUorUR;
}

double ConnectorBHElasticityData::getF1() const
{
    return F1;
}

void ConnectorBHElasticityData::setF1(double newF1)
{
    F1 = newF1;
}

double ConnectorBHElasticityData::getF2() const
{
    return F2;
}

void ConnectorBHElasticityData::setF2(double newF2)
{
    F2 = newF2;
}

double ConnectorBHElasticityData::getF3() const
{
    return F3;
}

void ConnectorBHElasticityData::setF3(double newF3)
{
    F3 = newF3;
}

double ConnectorBHElasticityData::getM1() const
{
    return M1;
}

void ConnectorBHElasticityData::setM1(double newM1)
{
    M1 = newM1;
}

double ConnectorBHElasticityData::getM2() const
{
    return M2;
}

void ConnectorBHElasticityData::setM2(double newM2)
{
    M2 = newM2;
}

double ConnectorBHElasticityData::getM3() const
{
    return M3;
}

void ConnectorBHElasticityData::setM3(double newM3)
{
    M3 = newM3;
}

double ConnectorBHElasticityData::getCP1() const
{
    return CP1;
}

void ConnectorBHElasticityData::setCP1(double newCP1)
{
    CP1 = newCP1;
}

double ConnectorBHElasticityData::getCP2() const
{
    return CP2;
}

void ConnectorBHElasticityData::setCP2(double newCP2)
{
    CP2 = newCP2;
}

double ConnectorBHElasticityData::getCP3() const
{
    return CP3;
}

void ConnectorBHElasticityData::setCP3(double newCP3)
{
    CP3 = newCP3;
}

double ConnectorBHElasticityData::getCPR1() const
{
    return CPR1;
}

void ConnectorBHElasticityData::setCPR1(double newCPR1)
{
    CPR1 = newCPR1;
}

double ConnectorBHElasticityData::getCPR2() const
{
    return CPR2;
}

void ConnectorBHElasticityData::setCPR2(double newCPR2)
{
    CPR2 = newCPR2;
}

double ConnectorBHElasticityData::getCPR3() const
{
    return CPR3;
}

void ConnectorBHElasticityData::setCPR3(double newCPR3)
{
    CPR3 = newCPR3;
}

double ConnectorBHElasticityData::getCCU1() const
{
    return CCU1;
}

void ConnectorBHElasticityData::setCCU1(double newCCU1)
{
    CCU1 = newCCU1;
}

double ConnectorBHElasticityData::getCCU2() const
{
    return CCU2;
}

void ConnectorBHElasticityData::setCCU2(double newCCU2)
{
    CCU2 = newCCU2;
}

double ConnectorBHElasticityData::getCCU3() const
{
    return CCU3;
}

void ConnectorBHElasticityData::setCCU3(double newCCU3)
{
    CCU3 = newCCU3;
}

double ConnectorBHElasticityData::getCCUR1() const
{
    return CCUR1;
}

void ConnectorBHElasticityData::setCCUR1(double newCCUR1)
{
    CCUR1 = newCCUR1;
}

double ConnectorBHElasticityData::getCCUR2() const
{
    return CCUR2;
}

void ConnectorBHElasticityData::setCCUR2(double newCCUR2)
{
    CCUR2 = newCCUR2;
}

double ConnectorBHElasticityData::getCCUR3() const
{
    return CCUR3;
}

void ConnectorBHElasticityData::setCCUR3(double newCCUR3)
{
    CCUR3 = newCCUR3;
}



}
